import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 屏幕适配
import 'amfe-flexible'
// 日期格式化
import moment from 'moment'
import 'moment/locale/zh-cn'

// 图标库样式
import './assets/iconfont/iconfont.css'
import './assets/iconfont/iconfont.js'
import animate from 'animate.css'
import axios from 'axios'

import { NavBar, Form, Field, Button, Checkbox, Icon, Popup, Switch, Collapse, CollapseItem, Calendar, Sticky, Search, Uploader, ActionSheet, Notify, CellGroup, Cell, Dialog, SwipeCell, Divider, Loading, Image as VanImage, Overlay, Swipe, SwipeItem, Skeleton, List } from 'vant'

// 引入mock
// import mockjs from 'mockjs'
// import './mock/index.js'

Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Checkbox)
Vue.use(Icon)
Vue.use(Popup)
Vue.use(Switch)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Calendar)
Vue.use(Sticky)
Vue.use(Search)
Vue.use(Uploader)
Vue.use(ActionSheet)
Vue.use(Notify)
Vue.use(CellGroup)
Vue.use(Cell)
Vue.use(Dialog)
Vue.use(SwipeCell)
Vue.use(Divider)
Vue.use(Loading)
Vue.use(VanImage)
Vue.use(Overlay)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Skeleton)
Vue.use(List)

Vue.use(animate)
Vue.prototype.$moment = moment
Vue.prototype.axios = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
